home *** CD-ROM | disk | FTP | other *** search
/ Iron Maiden - Maiden Hell! / Iron Maiden - Maiden Hell! Promotional CD-ROM.iso / mac / promo.dxr / scripts_138_jump around morph.ls < prev    next >
Encoding:
Text File  |  1998-09-16  |  1.6 KB  |  41 lines

  1. on mouseEnter
  2.   set the cursor of sprite the currentSpriteNum to [the number of member "finger", the number of member "fingermask"]
  3. end
  4.  
  5. on mouseDown
  6.   global gWhereWereMorphingTo, gAlbumInCatalogue
  7.   set the puppet of sprite 13 to 0
  8.   set the puppet of sprite 19 to 0
  9.   sound stop 1
  10.   set gWhereWereMorphingTo to 60 * (the currentSpriteNum - 36)
  11.   set gAlbumInCatalogue to the currentSpriteNum - 35
  12.   set albumNumber to string(gAlbumInCatalogue)
  13.   set the member of sprite 2 to "albumName" & albumNumber
  14.   set the member of sprite 6 to "trackList" & albumNumber
  15.   set the member of sprite 10 to "buttons" & albumNumber
  16.   set the member of sprite 11 to "trackList" & albumNumber & "song1"
  17.   set the member of sprite 12 to "trackList" & albumNumber & "song2"
  18.   set the member of sprite 30 to "albumtitle" & albumNumber
  19.   set the locH of sprite 48 to the left of sprite the currentSpriteNum
  20.   set the locV of sprite 48 to the top of sprite the currentSpriteNum
  21.   if the movieTime of sprite 7 < gWhereWereMorphingTo then
  22.     set the movieRate of sprite 7 to 1
  23.     repeat while the movieTime of sprite 7 < gWhereWereMorphingTo
  24.       updateStage()
  25.     end repeat
  26.     set the movieTime of sprite 7 to gWhereWereMorphingTo
  27.   else
  28.     set the movieRate of sprite 7 to -1
  29.     repeat while the movieTime of sprite 7 > gWhereWereMorphingTo
  30.       updateStage()
  31.     end repeat
  32.     set the movieTime of sprite 7 to gWhereWereMorphingTo + 1
  33.   end if
  34.   set the movieRate of sprite 7 to 0
  35.   updateStage()
  36. end
  37.  
  38. on mouseLeave
  39.   set the cursor of sprite the currentSpriteNum to [the number of member "finger", the number of member "fingermask"]
  40. end
  41.